# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=signify
pkgver=31
pkgrel=0
pkgdesc="OpenBSD tool to sign and verify signatures on files"
url="https://github.com/aperezdc/signify"
arch="all"
license="ISC"
makedepends="libbsd-dev"
checkdepends="coreutils"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/aperezdc/signify/archive/v$pkgver.tar.gz"

build() {
	make EXTRA_CFLAGS="$CFLAGS" EXTRA_LDFLAGS="$LDFLAGS" LTO=1
}

check() {
	make check
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
bb3003d88ee116626193a451ad5898bb158567e97ed6d1169eb94dfd60da70c76fd656acff19d4f0b6a04b068da7e16124382d65a98f90f444728c9d58c75003  signify-31.tar.gz
"
